package com.property.business.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 业务-用户信息 前端控制器
 * </p>
 *
 * @author 刘煦煌
 * @since 2023-11-24
 */
@RestController
@RequestMapping("/user-info")
public class UserInfoController {

    //@Resource
    //private IUserInfoService userInfoService;
    //
    //// 新增或者更新
    //@PostMapping
    //public Result save(@RequestBody UserInfo userInfo) {
    //    userInfoService.saveOrUpdate(userInfo);
    //    return Result.success();
    //}
    //
    //@DeleteMapping("/{id}")
    //public Result delete(@PathVariable Integer id) {
    //    userInfoService.removeById(id);
    //    return Result.success();
    //}
    //
    //@PostMapping("/del/batch")
    //public Result deleteBatch(@RequestBody List<Integer> ids) {
    //    userInfoService.removeByIds(ids);
    //    return Result.success();
    //}
    //
    //@GetMapping
    //public Result findAll() {
    //    return Result.success(userInfoService.list());
    //}
    //
    //@GetMapping("/{id}")
    //public Result findOne(@PathVariable Integer id) {
    //    return Result.success(userInfoService.getById(id));
    //}
    //
    //@GetMapping("/page")
    //public Result findPage(@RequestParam Integer pageNum,
    //                            @RequestParam Integer pageSize) {
    //    QueryWrapper<UserInfo> queryWrapper = new QueryWrapper<>();
    //    queryWrapper.orderByDesc("id");
    //    return Result.success(userInfoService.page(new Page<>(pageNum, pageSize), queryWrapper));
    //}

}

